<template>
  <div class="department" id="department">
    <!-- 左侧部门管理 -->
    <div class="structureTree" v-if="treelength">
      <div class="structureTree_title">
        <div>组织机构</div>
        <div>
          <el-checkbox v-model="checked" @change="see()">查看下级</el-checkbox>
        </div>
      </div>
      <tree
        :treeData="treeData"
        :checkData="checkData"
        nodeKey="fCompanyid"
        @getTreeInfo="handleNodeClick"
        :defaultProps="defaultProps"
      >
      </tree>
    </div>
    <!-- 右侧 -->
    <div class="department_right">
      <!-- 机构名称 -->
      <el-breadcrumb :title="showName"></el-breadcrumb>
      <!-- 顶部导航栏 -->
      <div class="mechanism_nav">
        <!-- 左侧 -->
        <div class="mechanism_nav_left" style="width: 100%">
          <el-select
            class="selectBhz"
            v-model="getList.fQualitygridclass"
            placeholder="选择质量网格"
            @change="changeProject(getList)"
            style="width: 160px"
          >
            <el-option
              v-for="v in engineeringList"
              :key="v.fItemName"
              :label="v.fItemName"
              :value="v.fItemValue"
            >
            </el-option>
          </el-select>
          <el-select
            class="selectBhz"
            v-model="getList.fQualitygridtype"
            placeholder="选择工程类型"
            @change="yj_searchForm(getList)"
            style="width: 160px"
          >
            <el-option
              v-for="v in qualityGridList"
              :key="v.label"
              :label="v.label"
              :value="v.value"
            >
            </el-option>
          </el-select>
        </div>
        <!-- 顶部按钮 -->
        <div class="print">
          <div class="printTable">
            <el-button
              type="primary"
              icon="el-icon-refresh"
              size="small"
              @change="yj_searchForm(getList)"
            >
            </el-button>
            <el-button
              type="primary"
              v-if="yj_view"
              icon="el-icon-search"
              size="small"
              @click="editText(fId)"
              >查看
            </el-button>
          </div>
        </div>
      </div>
      <!-- 表格 -->
      <div class="text_table">
        <tableData
          :height="navigatepageNums > 1 ? 'calc(100% - 50px)' : '100%'"
          :config="table_config"
          :dataList="tableData"
          :loading="loading"
          @selection-change="selectionChange"
          @sort-change="sortChange"
          @click-change="rowChange"
          @ClickOnLine="yj_viewForm"
          :page="getList.page"
          :pageSize="getList.pageSize"
        />
        <pagination
          v-if="navigatepageNums > 1"
          :info="queryCriteriaData"
          :treelength="treelength"
          :total="queryCriteriaData.total"
          :pageNum.sync="getList.page"
          :limit.sync="getList.pageSize"
          @pagination="yj_searchForm(getList)"
        />
      </div>
      <!--弹框-->
      <div class="Control-1 mechanism_dialogS closure">
        <el-dialog
          :title="dialogTitle"
          :modal-append-to-body="false"
          v-dialogDrag
          :visible.sync="dialogEditVisible"
          v-loading="loadingEditDialog"
          element-loading-text="拼命加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.2)"
        >
          <div
            class="dialogBody common"
            :style="{ height: '650px' }"
            style="overflow: hidden"
          >
            <el-menu
              :default-active="activeIndex"
              class="el-menu-demo"
              mode="horizontal"
              @select="handleSelect"
            >
              <el-menu-item index="0">责任人信息</el-menu-item>
              <el-menu-item index="1">巡查问题</el-menu-item>
              <!-- <el-menu-item index="2">工作指令</el-menu-item> -->
            </el-menu>
            <div
              style="
                overflow-y: auto;
                margin-bottom: 20px;
                height: calc(100% - 31px);
                padding-top: 5px;
              "
              v-if="activeIndex == '0'"
            >
              <div class="baseTitle">场站质量管理网格</div>
              <div class="publicForm" style="height: 80px">
                <publicForm
                  ref="publicForm0"
                  lableWidth="105px"
                  :formObj="formObjShow"
                  :formData="formData"
                >
                </publicForm>
              </div>

              <div
                style="
                  width: 100%;
                  display: flex;
                  justify-content: space-between;
                "
              >
                <div style="width: 50%">
                  <div class="baseTitle">项目部质量责任人</div>
                  <div class="publicForm" style="height: 170px">
                    <publicForm
                      ref="publicForm1"
                      lableWidth="105px"
                      :formObj="projectShow"
                      :formData="formData"
                    >
                    </publicForm>
                  </div>
                </div>
                <div style="width: 50%">
                  <div class="baseTitle">监理质量责任人</div>
                  <div class="publicForm" style="height: 170px">
                    <publicForm
                      ref="publicForm2"
                      lableWidth="105px"
                      :formObj="supervisionShow"
                      :formData="formData"
                    >
                    </publicForm>
                  </div>
                </div>
              </div>

              <div class="baseTitle">项目部质量责任人</div>
              <div class="publicForm" style="height: 80px">
                <publicForm
                  ref="publicForm3"
                  lableWidth="105px"
                  :formObj="examineShow"
                  :formData="formData"
                >
                </publicForm>
              </div>
              <div class="baseTitle">开工信息管理</div>
              <div class="publicForm" style="height: 80px">
                <publicForm
                  ref="publicForm3"
                  lableWidth="105px"
                  :formObj="informationShow"
                  :formData="formData"
                >
                </publicForm>
              </div>
              <div style="height: 50px"></div>
            </div>

            <div
              style="
                overflow-y: auto;
                margin-bottom: 20px;
                height: calc(100% - 35px);
              "
              v-if="activeIndex == '1'"
            >
              <tableData
                :height="navigatepageNums1 > 1 ? 'calc(100% - 50px)' : '100%'"
                :config="table_config1"
                :dataList="tableData1"
                :loading="loading"
                @selection-change="selectionChange"
                @sort-change="sortChange"
                @click-change="rowChange1"
                @ClickOnLine="yj_viewForm1"
                :page="getList.page"
                :pageSize="getList.pageSize"
              />
            </div>
          </div>
        </el-dialog>
      </div>

      <!--巡查详情-->
      <div class="Control-1 mechanism_dialogS closure">
        <el-dialog
          title="巡查问题详情"
          :modal-append-to-body="false"
          v-dialogDrag
          :visible.sync="dialogEditVisible1"
          v-loading="loadingEditDialog1"
          element-loading-text="拼命加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.2)"
        >
          <div
            class="dialogBody common"
            :style="{ height: '650px' }"
            style="overflow: hidden"
          >
            <div style="overflow-y: auto; margin-bottom: 20px">
              <div class="baseTitle">质量巡查信息</div>
              <div class="publicForm" style="height: 285px">
                <publicForm
                  ref="publicForm0"
                  lableWidth="115px"
                  :formObj="XC_formObjShow"
                  :formData="formData1"
                  :timestamp="formData1.fPatrolfileurl"
                  :fileList="fHandlefileList"
                >
                </publicForm>
              </div>

              <div class="baseTitle">巡查信息签收</div>
              <div class="publicForm" style="height: 80px">
                <publicForm
                  ref="publicForm1"
                  lableWidth="115px"
                  :formObj="XC_examineShow"
                  :formData="formData1"
                >
                </publicForm>
              </div>
              <div class="baseTitle">整改信息回复</div>
              <div class="publicForm" style="height: 120px">
                <publicForm
                  ref="publicForm2"
                  lableWidth="115px"
                  :formObj="XC_rectificationShow"
                  :formData="formData1"
                  :timestamp="formData1.fCompletionfile"
                  :fileList="fCompletionfilelist"
                >
                </publicForm>
              </div>
              <div style="height: 50px"></div>
            </div>
          </div>
        </el-dialog>
      </div>
    </div>
  </div>
</template>

<script>
import elBreadcrumb from "@/components/public/el-breadcrumb.vue";
import tree from "@/components/QualityGridManage/tree"; //左侧机构树
import TableData from "@/components/HntManage/el-tables"; //主页面列表
import Pagination from "@/components/public/el-pagination"; //主页面分页
import publicForm from "@/components/public/el-form.vue"; //弹框form
import formJs from "./regexDetail.js"; //新增弹框配置项
import {
  getXmCompanyTreeList, //左侧机构树接口
  getQualityDutyStationLists2, //主页面列表接口
  getQualityDutyStationByFid2, //详情
  getWorkProcessPatrol2ByFid, //巡查问题详情
  getWorkProcessPatrol2PageLists, //巡查列表
} from "@/api/request.js";

export default {
  name: "distribute",
  data() {
    return {
      name: "distribute", //按钮配置页面代号
      yj_view: null,
      // 分页
      navigatepageNums: null, //是否显示分页
      queryCriteriaData: {},
      // 分页

      // 列表
      getList: {
        fCompanyid: "", // 左侧选中组织机构id
        page: 1, //页码
        pageSize: 20, //每页条数
        userId: "", // 查询待办或已办时传 列表页查询不传
        modelType: "2", // 0代办 1已办 2表示列表页查询
        fQualitygridclass: "", // 上方查询条件质量网格
        fQualitygridtype: "", // 上方查询条件工程网格
        keyWord: "", // 责任人
        sublevel: 1,
      },
      fId: null, //当前行数据fId
      row: {}, //选中行
      loading: false, //列表转载
      table_config: formJs.table_config,
      tableData: [], //表格列表数据列表
      qualityGridList: [], //质量网格下拉框
      engineeringList: [
        { fItemName: "=请选择=", fItemValue: "=请选择=" },
        { fItemName: "生产场站质量网格", fItemValue: "生产场站质量网格" },
        { fItemName: "工程实体质量网格", fItemValue: "工程实体质量网格" },
      ], //质量网格类型
      // 列表

      // 弹框·

      activeIndex: "0",
      dialogTitle: "",
      loadingEditDialog: false, //弹框loading
      dialogEditVisible: false, //新增弹框是否显示
      formObjShow: formJs.formObjLook,
      supervisionShow: formJs.supervisionLook,
      projectShow: formJs.projectLook,
      examineShow: formJs.examineLook,
      informationShow: formJs.informationLook,
      formData: formJs.formData,
      // 巡查问题
      row1: {}, //选中行
      loadingEditDialog1: false, //弹框loading
      dialogEditVisible1: false, //新增弹框是否显示
      navigatepageNums1: null, //是否显示分页
      queryCriteriaData1: {},
      formData1: formJs.formData,
      table_config1: formJs.table_config_patrol, //巡查列表
      tableData1: [], //指令列表数据列表
      // 巡查详情
      XC_formObjShow: formJs.XC_formObjLook, //质量巡查信息
      XC_examineShow: formJs.XC_examineLook, //巡查信息签收
      XC_rectificationShow: formJs.XC_rectificationLook, //整改信息回复
      fHandlefileList: [], //上传文件
      fCompletionfilelist: [], //回复文件
      // 巡查详情
      dialogEditVisibleXc: false,
      loadingEditDialogXc: false, //弹框loading
      // 巡查问题
      // 弹框

      // 机构树
      highlightBd: true, //左侧机构树停留背景色
      treelength: false, //左侧树显示隐藏
      checked: true, //查看下级按钮
      showName: "未选择公司",
      companyTree: "", //所有数据
      treeData: [], //左侧树状图数据
      defaultProps: {
        children: "children",
        label: "fShortname",
      },
      treeText: {
        companyId: null,
        userId: null,
      },
      checkData: [], //树状图默认选中id
      // 机构树
      userInfo: {}, //登录用户
    };
  },
  components: {
    elBreadcrumb,
    tree, //左侧组织机构数
    TableData, //主页面列表
    publicForm, //弹框表格
    Pagination, //分页
  },
  mounted() {
    var sublevel = null;
    if (this.checked == true) {
      sublevel = 1;
    } else {
      sublevel = 0;
    }
    this.userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
    this.getList.userId = this.userInfo.userId;

    if (JSON.parse(sessionStorage.getItem("scene_getList"))) {
      var scene_getList = JSON.parse(sessionStorage.getItem("scene_getList"));

      this.getList = {
        fCompanyid: scene_getList.fCompanyid, // 左侧选中组织机构id
        page: 1, //页码
        pageSize: 20, //每页条数
        userId: scene_getList.userId, // 查询待办或已办时传 列表页查询不传
        modelType: "2", // 0代办 1已办 2表示列表页查询
        fQualitygridclass: scene_getList.fQualitygridclass, // 上方查询条件质量网格
        fQualitygridtype: scene_getList.fQualitygridtype, // 上方查询条件工程网格
        keyWord: "", // 责任人
        sublevel: sublevel,
      };
      if (this.getList.fQualitygridclass == "") {
        this.getList.fQualitygridtype = "";
        this.qualityGridList = [];
      } else if (this.getList.fQualitygridclass == "生产场站质量网格") {
        this.qualityGridList = [
          {
            value: "=请选择=",
            label: "=请选择=",
          },
          {
            value: "混凝土拌合站",
            label: "混凝土拌合站",
          },
          {
            value: "水稳料拌合站",
            label: "水稳料拌合站",
          },
          {
            value: "沥青料拌合站",
            label: "沥青料拌合站",
          },
          {
            value: "钢筋加工场",
            label: "钢筋加工场",
          },
          {
            value: "梁板预制场",
            label: "梁板预制场",
          },
          {
            value: "碎石材料加工厂",
            label: "碎石材料加工厂",
          },
          {
            value: "小型预制构件厂",
            label: "小型预制构件厂",
          },
        ];
      } else if (this.getList.fQualitygridclass == "工程实体质量网格") {
        this.qualityGridList = [
          {
            value: "=请选择=",
            label: "=请选择=",
          },
          {
            value: "路基土石方",
            label: "路基土石方",
          },
          {
            value: "路面工程",
            label: "路面工程",
          },
          {
            value: "桥梁工程",
            label: "桥梁工程",
          },
          {
            value: "隧道工程",
            label: "隧道工程",
          },
          {
            value: "涵洞工程",
            label: "涵洞工程",
          },
          {
            value: "防护排水",
            label: "防护排水",
          },
          {
            value: "交安工程",
            label: "交安工程",
          },
          {
            value: "管道工程",
            label: "管道工程",
          },
          {
            value: "房建工程",
            label: "房建工程",
          },
          {
            value: "绿化工程",
            label: "绿化工程",
          },
        ];
      }
    }

    if (JSON.parse(sessionStorage.getItem("Quality_treeCheck"))) {
      var id = JSON.parse(sessionStorage.getItem("Quality_treeCheck"));
      this.checkData = [id.fCompanyid];
    }

    this.getTree();
    this.btnRole(this.name);
    this.table_config1.operation.cols = [
      {
        prop: "fStatus",
        type: "primary",
        handleRow: this.handleRow,
      },
    ];
    this.table_config1.operation["specialClass"] = function (rowData) {
      var color = null;
      if (rowData == "待签收") {
        color = "red !important";
      } else if (rowData == "执行中") {
        color = "orange !important";
      } else if (rowData == "已结束") {
        color = "green !important";
      } else {
        color = "#409eff !important";
      }
      return color;
    };
  },
  methods: {
    //查看下级
    see() {
      if (this.checked == true) {
        this.getList.sublevel = 1;
      } else {
        this.getList.sublevel = 0;
      }
      this.yj_searchForm(this.getList);
    },
    btnRole(name) {
      var btnList = [];
      var ModuleList = JSON.parse(sessionStorage.getItem("ModuleList"));
      if (ModuleList.length > 0) {
        ModuleList.map((item) => {
          if (item.fEncode == name) {
            btnList = item.modulebuttonList;
          }
        });
        var btnStr = [];
        btnList.map((item) => {
          btnStr.push(item.fEncode);
        });

        this.yj_view = btnStr.includes("yj_view");
      } else {
        this.yj_view = true;
      }
    },
    handleSelect(key, keyPath) {
      this.activeIndex = key;
      return keyPath;
    },
    // 左侧树结构
    getTree() {
      this.treeText.companyId = this.userInfo.companyId;
      this.treeText.userId = this.userInfo.userId;
      getXmCompanyTreeList(this.treeText)
        .then((res) => {
          if (res.errcode == 0) {
            var companyTree = res.data.userCompanyTreeList;
            this.treeData = this.commonJs.tranListToTreeData(companyTree);

            if (
              this.treeData[0].children == undefined &&
              this.treeData.length <= 1
            ) {
              this.treelength = false; //左侧组织机构是否显示
            } else {
              this.treelength = true;
            }

            if (this.checkData[0]) {
              this.showName = JSON.parse(
                sessionStorage.getItem("Quality_treeCheck")
              ).fShortname;
              this.getList.fCompanyid = this.checkData[0];
            } else {
              this.showName = this.treeData[0].fShortname; //当前点击组织机构名称
              this.getList.fCompanyid = this.treeData[0].fCompanyid; //当前点击组织机构ID
              this.checkData[0] = this.treeData[0].fCompanyid;
            }
            this.yj_searchForm(this.getList); // 调用主页面列表接口
            // 列表
          } else {
            this.$message.error(res.msg);
            return false;
          }
        })
        .catch(() => {
          return false;
        });
    },
    // 点击左侧机构树
    handleNodeClick(data) {
      this.showName = data.fShortname; //顶部显示机构名
      var sublevel = null;
      if (this.checked == true) {
        sublevel = 1;
      } else {
        sublevel = 0;
      }
      this.getList = {
        fCompanyid: data.fCompanyid, // 左侧选中组织机构id
        page: 1, //页码
        pageSize: 20, //每页条数
        userId: "", // 查询待办或已办时传 列表页查询不传
        modelType: "2", // 0代办 1已办 不传或传空 表示列表页查询
        fQualitygridclass: "", // 上方查询条件质量网格
        fQualitygridtype: "", // 上方查询条件工程网格
        keyWord: "", // 责任人
        sublevel: sublevel,
      };
      this.yj_searchForm(this.getList);
    },
    // 顶部下拉框
    changeProject(id) {
      this.getList.fQualitygridtype = "";
      if (id.fQualitygridclass == "=请选择=") {
        this.getList.fQualitygridclass = "";
        this.qualityGridList = [];
      } else if (id.fQualitygridclass == "生产场站质量网格") {
        this.qualityGridList = [
          {
            value: "=请选择=",
            label: "=请选择=",
          },
          {
            value: "混凝土拌合站",
            label: "混凝土拌合站",
          },
          {
            value: "水稳料拌合站",
            label: "水稳料拌合站",
          },
          {
            value: "沥青料拌合站",
            label: "沥青料拌合站",
          },
          {
            value: "钢筋加工场",
            label: "钢筋加工场",
          },
          {
            value: "梁板预制场",
            label: "梁板预制场",
          },
          {
            value: "碎石材料加工厂",
            label: "碎石材料加工厂",
          },
          {
            value: "小型预制构件厂",
            label: "小型预制构件厂",
          },
        ];
      } else if (id.fQualitygridclass == "工程实体质量网格") {
        this.qualityGridList = [
          {
            value: "=请选择=",
            label: "=请选择=",
          },
          {
            value: "路基土石方",
            label: "路基土石方",
          },
          {
            value: "路面工程",
            label: "路面工程",
          },
          {
            value: "桥梁工程",
            label: "桥梁工程",
          },
          {
            value: "隧道工程",
            label: "隧道工程",
          },
          {
            value: "涵洞工程",
            label: "涵洞工程",
          },
          {
            value: "防护排水",
            label: "防护排水",
          },
          {
            value: "交安工程",
            label: "交安工程",
          },
          {
            value: "管道工程",
            label: "管道工程",
          },
          {
            value: "房建工程",
            label: "房建工程",
          },
          {
            value: "绿化工程",
            label: "绿化工程",
          },
        ];
      }

      this.yj_searchForm(id);
    },
    // 获取列表数据
    yj_searchForm(id) {
      if (id.fQualitygridtype == "=请选择=") {
        id.fQualitygridtype = "";
      }
      window.sessionStorage.setItem("scene_getList", JSON.stringify(id));
      this.row = { fstatus: "" }; //选中行
      this.loading = true;
      // getQualityDutyStationLists(id)
      getQualityDutyStationLists2(id)
        .then((res) => {
          if (res.errcode == 0) {
            var that = this;
            that.loading = false;
            that.tableData = res.data.pageInfo.list;
            that.queryCriteriaData = res.data.pageInfo;
            that.navigatepageNums =
              that.queryCriteriaData.navigatepageNums.length;
          } else {
            this.$message.error("列表", res.msg);
            this.loading = false;
          }
        })
        .catch(() => {
          this.loading = false;
        });
    },
    // 巡查列表
    yj_searchForm1(id) {
      this.loading = true;
      console.log(8888, id);
      getWorkProcessPatrol2PageLists(id)
        .then((res) => {
          if (res.errcode == 0) {
            var that = this;
            that.loading = false;
            that.tableData1 = res.data.pageInfo.list;
            that.queryCriteriaData1 = res.data.pageInfo;
            that.navigatepageNums1 =
              that.queryCriteriaData1.navigatepageNums.length;
          } else {
            this.$message.error("列表", res.msg);
            this.loading = false;
          }
        })
        .catch(() => {
          this.loading = false;
        });
    },

    // 点击当前
    rowChange(val) {
      this.row = val;
      this.fId = val.fId;
    },
    rowChange1(val) {
      this.row1 = val;
    },
    // 点击查看
    yj_viewForm(row, label) {
      this.row = row;
      this.fId = row.fId;
      if (label == "工程网格类别") {
        this.editText(this.fId);
      }
    },
    yj_viewForm1(row, label) {
      this.row1 = row;
      if (label == "巡查单位") {
        this.editText1(row.fId);
      }
    },

    // 查看
    editText(id) {
      this.dialogTitle = "查看";
      this.activeIndex = "0";
      if (id != "" && id != null) {
        this.loadingEditDialog = true; //弹框loading
        this.dialogEditVisible = true;
        getQualityDutyStationByFid2({ fId: id })
          // getQualityDutyStationByFid({ fId: id })
          .then((res) => {
            if (res.errcode == 0) {
              var that = this;
              that.loadingEditDialog = false;

              this.formData = res.data.yjQmpMsQualitydutystationManagement;
              console.log(this.formData, 8989);
              var data = {
                fCompanyid: this.formData.fCompanyid, // 左侧选中组织机构id
                fQualitygridclass: this.formData.fQualitygridclass, // 上方查询条件质量网格
                fQualitygridtype:
                  this.formData.fQualitygridtype +
                  "-" +
                  this.formData.fProjectposition, // 上方查询条件工程网格
                fUnittype: "", //巡查单位类型（集团公司，分子公司，项目公司，监理单位）
                fStatus: "", //信息状态---编辑中（可编辑，可下发），待签收（可签收），执行中（可整改编辑），已结束
                warningLevel: "", // 预警状态 1：表示超期未结束 2：表示超期已结束
                page: 1, // 当前页码
                pageSize: 20, // 每页显示条数
                userId: "", // 查询待办或已办时传 列表页查询不传
                modelType: "2", // 0-待办 1-已办 传2 表示列表页查询
              };
              this.yj_searchForm1(data);
            } else {
              this.$message.error("查看", res.msg);
              this.loadingEditDialog = false;
            }
          })
          .catch(() => {
            console.log("查看---详情接口报错");
            this.loadingEditDialog = false;
          });
      } else {
        return this.$message.error("请先选择需要查看的数据");
      }
    },
    editText1(id) {
      if (id != "" && id != null) {
        this.loadingEditDialog1 = true; //弹框loading
        this.dialogEditVisible1 = true;
        getWorkProcessPatrol2ByFid({ fId: id })
          .then((res) => {
            if (res.errcode == 0) {
              var that = this;
              that.loadingEditDialog1 = false;
              this.formData1 = res.data.yjQmpMsWorkprocessPatrol;
              this.fHandlefileList = res.data.fPatrolfileurllist;
              this.fCompletionfilelist = res.data.fCompletionfilelist;
            } else {
              this.$message.error("查看", res.msg);
              this.loadingEditDialog1 = false;
            }
          })
          .catch(() => {
            console.log("查看---详情接口报错");
            this.loadingEditDialog1 = false;
          });
      } else {
        return this.$message.error("请先选择需要查看的数据");
      }
    },

    selectionChange() {},
    // 排序方法
    sortChange() {},
  },
};
</script>

<style scoped>
.printTables {
  background: #fff;
  display: flex;
  justify-content: end;
  padding: 5px;
  margin-top: 10px;
}

.dialogBody {
  padding: 3px 20px;
  height: 80%;
  overflow-y: auto;
}

.baseTitle {
  /* border: 1px solid #0c204d; */
  border-bottom: 1px solid #0c204d;
  height: 30px;
  line-height: 30px;
  position: relative;
  padding-left: 15px;
}

.baseTitle::after {
  display: block;
  content: "";
  height: 30px;
  width: 5px;
  position: absolute;
  left: 0;
  top: 0;
  background: #0c204d;
}

/* 指令详情弹框 */
.commons .publicForm .mouldForm /deep/ .el-form-item__content {
  margin-left: 125px !important;
}

/* 指令详情弹框 */
/* 弹框 */
.common /deep/.el-menu--horizontal > .el-menu-item.is-active {
  color: #409eff !important;
}

.publicForm .mouldForm /deep/ .el-form-item__content {
  margin-left: 120px !important;
}

/* 弹框 */
</style>
